import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import  router  from  './routers/index';
import  modelsIndex  from  './models/index';
import  teacherModel   from './models/teacher'
import createHistory from 'history/createBrowserHistory';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'font-awesome/css/font-awesome.css';
import './assents/css/index.css';

//1.引入dva
import dva from 'dva';
//2.创建dva 的实例对象app对象
let  app =new  dva({
     history: createHistory(),  //构造路由
});
//3.配置路由app.router
app.router(router);
// app.model(modelsIndex);
//5.注册模块
// 6.启动应用
app.start('#root');
